<template>
  <div class="progress-section">
    <div class="progress-bar">
      <div class="progress-fill" :style="{ width: progress + '%' }"></div>
    </div>
    <p class="progress-text">正在处理图片，请耐心等待...</p>
  </div>
</template>

<script>
export default {
  props: {
    progress: {
      type: Number,
      required: true,
      default: 0,
      validator: value => value >= 0 && value <= 100
    }
  }
}
</script>

<style scoped>
.progress-section {
  margin: 30px 0;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  transition: width 0.3s ease;
}

.progress-text {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0;
}
</style>